package cn.sumpu.app.guoguojie.constant;

import cn.sumpu.app.guoguojie.util.Common;

public class Grid {
    public Grid(){ }
    public Grid(String tagId, String tagName){
        this.tagId = tagId;
        this.tagName = tagName;
    }
    //标签信息
    private String tagId;
    private String tagName;
    
    public String getTagId() {
        return tagId;
    }
    public void setTagId(String tagId) {
        this.tagId = tagId;
    }
    public String getTagName() {
        return tagName;
    }
    public void setTagName(String tagName) {
        this.tagName = tagName;
    }
    
    public static String boy = "boy";
    public static String boyName = "男孩";
    public static String boyId = "100001116";
    public static String boyBackId = "100001716";
    public static String girl = "girl";
    public static String girlName = "女孩";
    public static String girlId = "100001115";
    public static String girlBackId = "100001717";
    public static String ymm = "ymm";
    public static String ymmName = "孕妈妈";
    public static String ymmId = "100001114";
    public static String ymmBackId = "100001330";
    //格子屋的ID
    public static String channel = "f34c5ed0-edd8-4506-863f-3635fe2ca85f";
    
    
    
    public String getBoy() {
        return boy;
    }
    public String getGirl() {
        return girl;
    }
    public String getYmm() {
        return ymm;
    }
    
    public static String getShow(String pd){
        if(boy.equals(pd)){
            return boyId;
        }else if(girl.equals(pd)){
            return girlId;
        }else if(ymm.equals(pd)){
            return ymmId;
        }else{
            return pd;
        }
    }
    
    public static String getName(String pd){
        if(boy.equals(pd)){
            return boyName;
        }else if(girl.equals(pd)){
            return girlName;
        }else if(ymm.equals(pd)){
            return ymmName;
        }else{
            return pd;
        }
    }
    
    public static String getBack(String pd){
        if(boy.equals(pd)){
            return boyBackId;
        }else if(girl.equals(pd)){
            return girlBackId;
        }else if(ymm.equals(pd)){
            return ymmBackId;
        }else{
            return pd;
        }
    }
    
    public static Boolean containMenuId(String menuId){
        if(Common.emptyStr(menuId)){
            return true;
        }else if(boyId.equals(menuId)){
            return true;
        }else if(girlId.equals(menuId)){
            return true;
        }else if(ymmId.equals(menuId)){
            return true;
        }else{
            return false;
        }
    }
    
}